//
//  Body.h
//  Racing
//
//  Created by vy phan on 4/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
@class State;

@interface Body : NSObject {
	@protected 
	float mass;
	float momentOfInertia;
	
	//@private 
	State* currentState;
	State* nextState;
}

/** Get the "current" state of the body. **/
-(State*) currentState;

/** Get the potential state of the body at the next time step. **/
-(State*) nextState;

/** Integrate the current state to get the next state. **/
-(void) integrate:(float)dt;

/** Make the current state the next state. **/
-(void) update;

@property (readwrite) float mass;
@property (readwrite) float momentOfInertia;
@end
